home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 16812 < prev    next >
Mailbox/MIME Entity  |  1996-08-05  |  1.0 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Mailbox/MIME Entity (archive/mbox).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Newsgroup Content (archive/news) magic Supported
100% dexvert Mailbox/MIME Entity (archive/mbox) magic Supported
100% dexvert Internet Message Format (text/imf) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file news, ASCII text default
100% checkBytes Printable ASCII default
100% dexmagic PrintFox/Pagefox WEAK default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/950 MIME Email (1.0) default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime message/news default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 6e 65 | 77 73 2e 72 63 68 6c 61 |Path: ne|ws.rchla|
|00000010| 6e 64 2e 69 62 6d 2e 63 | 6f 6d 21 75 73 65 6e 65 |nd.ibm.c|om!usene|
|00000020| 74 0a 46 72 6f 6d 3a 20 | 50 68 69 6c 69 70 20 53 |t.From: |Philip S|
|00000030| 74 61 69 74 65 20 3c 70 | 73 74 61 69 74 65 2b 40 |taite <p|staite+@|
|00000040| 72 63 68 6c 61 6e 64 2e | 69 62 6d 2e 63 6f 6d 3e |rchland.|ibm.com>|
|00000050| 0a 4e 65 77 73 67 72 6f | 75 70 73 3a 20 63 6f 6d |.Newsgro|ups: com|
|00000060| 70 2e 6c 61 6e 67 2e 63 | 2b 2b 0a 53 75 62 6a 65 |p.lang.c|++.Subje|
|00000070| 63 74 3a 20 52 65 3a 20 | 4f 70 65 6e 69 6e 67 2c |ct: Re: |Opening,|
|00000080| 20 63 6c 6f 73 69 6e 67 | 20 74 68 65 6e 20 6f 70 | closing| then op|
|00000090| 65 6e 69 6e 67 20 66 69 | 6c 65 73 2e 0a 44 61 74 |ening fi|les..Dat|
|000000a0| 65 3a 20 46 72 69 2c 20 | 31 32 20 41 70 72 20 31 |e: Fri, |12 Apr 1|
|000000b0| 39 39 36 20 31 31 3a 35 | 35 3a 31 34 20 2b 30 30 |996 11:5|5:14 +00|
|000000c0| 30 30 0a 4f 72 67 61 6e | 69 7a 61 74 69 6f 6e 3a |00.Organ|ization:|
|000000d0| 20 49 42 4d 20 52 6f 63 | 68 65 73 74 65 72 2c 20 | IBM Roc|hester, |
|000000e0| 4d 4e 0a 4d 65 73 73 61 | 67 65 2d 49 44 3a 20 3c |MN.Messa|ge-ID: <|
|000000f0| 33 31 36 45 34 34 41 32 | 2e 32 37 38 31 40 72 63 |316E44A2|.2781@rc|
|00000100| 68 6c 61 6e 64 2e 69 62 | 6d 2e 63 6f 6d 3e 0a 52 |hland.ib|m.com>.R|
|00000110| 65 66 65 72 65 6e 63 65 | 73 3a 20 3c 33 31 36 42 |eference|s: <316B|
|00000120| 32 36 31 33 2e 31 41 35 | 40 64 73 74 6f 2e 64 65 |2613.1A5|@dsto.de|
|00000130| 66 65 6e 63 65 2e 67 6f | 76 2e 61 75 3e 0a 4e 4e |fence.go|v.au>.NN|
|00000140| 54 50 2d 50 6f 73 74 69 | 6e 67 2d 48 6f 73 74 3a |TP-Posti|ng-Host:|
|00000150| 20 70 6f 77 65 72 74 6f | 6f 6c 2e 72 63 68 6c 61 | powerto|ol.rchla|
|00000160| 6e 64 2e 69 62 6d 2e 63 | 6f 6d 0a 4d 69 6d 65 2d |nd.ibm.c|om.Mime-|
|00000170| 56 65 72 73 69 6f 6e 3a | 20 31 2e 30 0a 43 6f 6e |Version:| 1.0.Con|
|00000180| 74 65 6e 74 2d 54 79 70 | 65 3a 20 74 65 78 74 2f |tent-Typ|e: text/|
|00000190| 70 6c 61 69 6e 3b 20 63 | 68 61 72 73 65 74 3d 75 |plain; c|harset=u|
|000001a0| 73 2d 61 73 63 69 69 0a | 43 6f 6e 74 65 6e 74 2d |s-ascii.|Content-|
|000001b0| 54 72 61 6e 73 66 65 72 | 2d 45 6e 63 6f 64 69 6e |Transfer|-Encodin|
|000001c0| 67 3a 20 37 62 69 74 0a | 58 2d 4d 61 69 6c 65 72 |g: 7bit.|X-Mailer|
|000001d0| 3a 20 4d 6f 7a 69 6c 6c | 61 20 32 2e 30 31 20 28 |: Mozill|a 2.01 (|
|000001e0| 58 31 31 3b 20 49 3b 20 | 41 49 58 20 31 29 0a 54 |X11; I; |AIX 1).T|
|000001f0| 6f 3a 20 49 61 69 6e 4a | 61 6d 65 73 6f 6e 20 3c |o: IainJ|ameson <|
|00000200| 49 61 69 6e 2e 4a 61 6d | 65 73 6f 6e 40 64 73 74 |Iain.Jam|eson@dst|
|00000210| 6f 2e 64 65 66 65 6e 63 | 65 2e 67 6f 76 2e 61 75 |o.defenc|e.gov.au|
|00000220| 3e 0a 0a 49 61 69 6e 4a | 61 6d 65 73 6f 6e 20 77 |>..IainJ|ameson w|
|00000230| 72 6f 74 65 3a 0a 3e 20 | 0a 3e 20 69 66 73 74 72 |rote:.> |.> ifstr|
|00000240| 65 61 6d 20 69 6e 46 69 | 6c 65 3b 0a 3e 20 63 68 |eam inFi|le;.> ch|
|00000250| 61 72 20 2a 66 69 6c 65 | 5f 6e 61 6d 65 3b 0a 3e |ar *file|_name;.>|
|00000260| 20 0a 3e 20 76 6f 69 64 | 20 64 6f 5f 73 74 75 66 | .> void| do_stuf|
|00000270| 66 28 2e 2e 2e 29 0a 3e | 20 7b 0a 3e 20 2e 2e 2e |f(...).>| {.> ...|
|00000280| 0a 3e 20 2e 2e 2e 0a 3e | 20 0a 3e 20 69 6e 46 69 |.> ....>| .> inFi|
|00000290| 6c 65 2e 6f 70 65 6e 28 | 66 69 6c 65 5f 6e 61 6d |le.open(|file_nam|
|000002a0| 65 2c 69 6f 73 3a 3a 69 | 6e 29 3b 0a 3e 20 2e 2e |e,ios::i|n);.> ..|
|000002b0| 2e 0a 3e 20 2e 2e 2e 0a | 3e 20 7d 0a 3e 20 0a 3e |..> ....|> }.> .>|
|000002c0| 20 49 20 6f 70 65 6e 20 | 66 69 6c 65 5f 6e 61 6d | I open |file_nam|
|000002d0| 65 2c 20 72 65 61 64 20 | 74 68 65 20 63 6f 6e 74 |e, read |the cont|
|000002e0| 65 6e 74 73 20 61 6e 64 | 20 64 6f 20 73 74 75 66 |ents and| do stuf|
|000002f0| 66 2e 0a 3e 20 54 68 65 | 6e 20 49 20 77 61 6e 74 |f..> The|n I want|
|00000300| 20 74 6f 20 6f 70 65 6e | 20 61 20 64 69 66 66 65 | to open| a diffe|
|00000310| 72 65 6e 74 20 66 69 6c | 65 5f 6e 61 6d 65 0a 3e |rent fil|e_name.>|
|00000320| 20 75 73 69 6e 67 20 74 | 68 69 73 20 73 61 6d 65 | using t|his same|
|00000330| 20 70 69 65 63 65 20 6f | 66 20 63 6f 64 65 2e 20 | piece o|f code. |
|00000340| 55 6e 66 6f 72 74 75 6e | 61 74 65 6c 79 20 49 20 |Unfortun|ately I |
|00000350| 63 61 6e 27 74 2e 0a 0a | 4f 68 2c 20 62 75 74 20 |can't...|Oh, but |
|00000360| 79 6f 75 20 63 61 6e 20 | 3b 2d 29 20 20 54 72 79 |you can |;-) Try|
|00000370| 3a 0a 0a 69 6e 46 69 6c | 65 2e 63 6c 6f 73 65 28 |:..inFil|e.close(|
|00000380| 29 3b 0a 69 6e 46 69 6c | 65 2e 6f 70 65 6e 28 20 |);.inFil|e.open( |
|00000390| 22 6e 65 78 74 5f 66 69 | 6c 65 5f 6e 61 6d 65 22 |"next_fi|le_name"|
|000003a0| 20 29 3b 0a 20 0a 0a 2d | 2d 20 0a 0a 50 68 69 6c | );. ..-|- ..Phil|
|000003b0| 20 53 74 61 69 74 65 2c | 20 28 35 30 37 29 20 32 | Staite,| (507) 2|
|000003c0| 35 33 2d 32 35 32 39 2c | 20 74 65 61 6d 20 4f 53 |53-2529,| team OS|
|000003d0| 2f 32 0a 69 6e 74 65 72 | 6e 65 74 3a 20 70 73 74 |/2.inter|net: pst|
|000003e0| 61 69 74 65 40 76 6e 65 | 74 2e 69 62 6d 2e 63 6f |aite@vne|t.ibm.co|
|000003f0| 6d 20 20 69 6e 74 65 72 | 6e 61 6c 3a 20 70 73 74 |m inter|nal: pst|
|00000400| 61 69 74 65 40 72 63 68 | 6c 61 6e 64 0a |aite@rch|land. |
+--------+-------------------------+-------------------------+--------+--------+